package com.devplatform.service.points;

import com.baomidou.mybatisplus.extension.service.IService;
import com.devplatform.pojo.points.UserLevel;

import java.util.Map;

/**
 * @author 86156
 * @description 针对表【user_level】的数据库操作Service
 * @createDate 2025-09-28 10:59:57
 */
public interface UserLevelService extends IService<UserLevel> {

    //计算用户等级
    void calculateUserLevel(Long userId);

    //获取用户等级详情
    Map<String, Object> getUserLevel(Long userId);

    //根据id查找等级权限
    UserLevel getUserLevelByLevel(Integer LevelId);

    String getLevelName(Integer LevelId);
}
